/**
 * 
 */
package com.naiterui.ehp.bs.im.network.protocl;

/**
 * @author He Qiang
 * @since 1.0.0
 */
public class SessionParams implements IChecker {

    public static final int SESSION_RANGE_ALL = 2;
    public static final int SESSION_RANGE_CONSULTING = 1;
    public static final int SESSION_RANGE_COMPLETE = 0;

    /**
     * 会话Id
     */
    private String sessionId;

    /**
     * 发送 者ID
     */
    private Long doctorId;

    /**
     * 接受者ID
     */
    private Long patientId;

    /**
     * 页码
     */
    private Integer pageNo;

    /**
     * 每页条数
     */
    private Integer pageSize;

    /**
     * 0:升序,1:倒序
     */
    private Integer orderBy;

    /**
     * 0:已结束会话;1:未完成的会话;2全部的会话
     */
    private Integer status;

    /**
     * 是否免单
     * 0:免费;1:收费;
     */
    private Integer freeFlag;

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public Long getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Long doctorId) {
        this.doctorId = doctorId;
    }

    public Long getPatientId() {
        return patientId;
    }

    public void setPatientId(Long patientId) {
        this.patientId = patientId;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getFreeFlag() {
        return freeFlag;
    }

    public void setFreeFlag(Integer freeFlag) {
        this.freeFlag = freeFlag;
    }

    public Integer getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(Integer orderBy) {
        this.orderBy = orderBy;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 字段验证
     * @Author He Qiang
     * @Date 2016年1月14日
     * @since 1.0.0
     * @return
     * @see com.naiterui.ehp.bs.im.network.protocl.IChecker#selfValidate()
     */
    @Override
    public boolean selfValidate() {
        if (pageNo == null || pageSize == null) {
            return false;
        }

        return true;
    }

}
